home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2003 May / cmycha200305.iso / MutantStorm / setup_mutantstorm_demo.exe / {app} / script / motha-2.lua < prev    next >
Text File  |  2003-03-11  |  4KB  |  114 lines

  1.  
  2. -- leave me
  3.     local actor = ACTOR_preload()
  4. -- leave me
  5.  
  6.     -- default for this beastie
  7.     actor[cp_actor_name]        = "motha-2"
  8.     actor[cp_model_dir]            = "beasties"
  9.     actor[cp_model_name]        = "motha-2"
  10.  
  11.     actor[cp_actor_type]            = cat_motha
  12.     actor[cp_move_type]            = cmt_random + cmt_anim_to_move
  13.  
  14.     actor[cp_hit_delay]                = 1.0
  15.     actor[cp_mutate_hit_delay]        = 1.0
  16.  
  17.     actor[cp_score]                = 2000
  18.  
  19.     actor[cp_hit_power]            = 5.0
  20.     -- movement
  21.     actor[cp_move_speed_min]        = 1.0
  22.     actor[cp_move_speed_max]        = 1.0
  23.     actor[cp_move_acceleration]        = 0.9
  24.     actor[cp_move_deceleration]        = 0.99
  25.     actor[cp_move_inertia_accn]        = 0.9
  26.     actor[cp_move_inertia_decn]        = 0.99
  27.  
  28.     actor[cp_target_stop_dist]        = 15.0
  29.  
  30.     actor[cp_turn_lock_angle_inner]        = 85.0
  31.     actor[cp_turn_lock_angle_outer]        = 95.0
  32.     actor[cp_turn_speed_still]        = 1.0
  33.     actor[cp_turn_acceleration_still]    = 0.9
  34.     actor[cp_turn_inertia_still]        = 0.9
  35.     actor[cp_turn_speed_moving]        = 1.0
  36.     actor[cp_turn_acceleration_moving]    = 0.9
  37.     actor[cp_turn_inertia_moving]        = 0.9
  38.  
  39.     actor[cp_weight]                = 40.0
  40.  
  41.     actor[cp_random_edge_inner_percent]    = 10.0
  42.     actor[cp_random_edge_outer_percent]    = 50.0
  43.  
  44.     actor[cp_num_spawn_min]            = 0.0
  45.     actor[cp_num_spawn_max]            = 0.0
  46.     actor[cp_scale_spawn_min]        = 35.0
  47.     actor[cp_scale_spawn_max]        = 45.0
  48.  
  49.     actor[cp_health_percent]        = 200.0
  50.  
  51.     actor[cp_launch_hue_shift] = color + 120
  52.  
  53.  actor[cp_difficulty_adjust_speed] = 25.0
  54.  actor[cp_difficulty_adjust_shoot] = 100.0
  55.  
  56.  
  57. -- leave me
  58.     c_preload_model( actor )
  59. -- leave me
  60.  
  61.     local seq = { 0.0, 0.05, 0.1, 0.2, 0.35, 0.6 }
  62.     c_set_use_explosion_for( "bye_bye", "motha-2", exp_no_align, 30.0, 0.3, 6000.0, 10000.0, seq )
  63.     c_add_particle_to_explosion( "motha-2", "explode", "", "motha-2_exp" )
  64.     c_add_sound_to_explosion( "motha-2", "explode", "motha-2_exp" )
  65.     c_add_sound_to_event( "hit_active_bone", "ouch_1" )
  66.  
  67.     local seq = { 0.0 }
  68.     c_set_use_explosion_for( "bye_bye_tail_x90", "motha-2", exp_no_align, 30.0, 0.0, 2000.0, 4000.0, { 0.6 } )
  69.     c_set_use_explosion_for( "bye_bye_tail_x70", "motha-2", exp_no_align, 30.0, 0.0, 3000.0, 5000.0, { 0.3 } )
  70.     c_set_use_explosion_for( "bye_bye_tail_x50", "motha-2", exp_no_align, 30.0, 0.0, 4000.0, 6000.0, { 0.1 } )
  71.     c_set_use_explosion_for( "bye_bye_tail_x30", "motha-2", exp_no_align, 30.0, 0.0, 4000.0, 6000.0, { 0.5 } )
  72.     c_set_use_explosion_for( "bye_bye_tail_x10", "motha-2", exp_no_align, 30.0, 0.0, 4000.0, 6000.0, { 0.0 } )
  73.  
  74.     c_set_use_anim_for( "move_forward", "swim", 70.0, 110.0 )
  75.     c_add_sound_to_anim( "swim", "motha-2_swim" )
  76.     c_add_particle_to_anim( "swim", "main", "motha-2_fart" )
  77.  
  78.     c_set_trigger_spawn( "motha-2_spawn", "swim", "main", 28.0, 0.05, 0.25, 0.0 )
  79.     c_set_trigger_mutate( "motha-2_spawn", "my_health", 0.0, 0.0, 40, 40, 30.0, 40.0 )
  80.  
  81. --    local seq = { 0.0, 0.1, 0.3 }
  82. --    c_set_use_explosion_for( "bye_bye", "exp2", exp_no_align, 100.0, 0.0, 1200.0, 1500.0, seq )
  83.     -- default for this beastie
  84.  
  85.     -- new state
  86.     -- set new actor stuff
  87.     actor[cp_num_spawn_min]            = 10.0
  88.     actor[cp_num_spawn_max]            = 15.0
  89.     -- send out
  90.     c_set_trigger_state( "less_beasties_active", "motha-2_spawn", 5.0, 10.0, actor )
  91.     -- set new anims etc...
  92.     c_set_use_anim_for( "move_forward", "swim", 70.0, 110.0 )
  93.     -- new state
  94.  
  95.     -- new state
  96.     -- set new actor stuff
  97.     actor[cp_num_spawn_min]            = -5.0
  98.     actor[cp_num_spawn_max]            = 10.0
  99.     -- send out
  100.     c_set_trigger_state( "more_beasties_active", "motha-2_spawn", 40.0, 50.0, actor )
  101.     -- set new anims etc...
  102.     c_set_use_anim_for( "move_forward", "swim", 70.0, 110.0 )
  103.     -- new state
  104.  
  105.     -- new state
  106.     -- set new actor stuff
  107.     actor[cp_num_spawn_min]            = 0.0
  108.     actor[cp_num_spawn_max]            = 0.0
  109.     -- send out
  110.     c_set_trigger_state( "more_beasties_active", "motha-2_spawn", 80.0, 90.0, actor )
  111.     -- set new anims etc...
  112.     c_set_use_anim_for( "move_forward", "swim2", 70.0, 110.0 )
  113.     -- new state
  114.